import Vue from 'vue'
import VueRouter from 'vue-router'
import HomePage from '../components/HomePage.vue'
import Login from '../components/Login.vue'
import Register from '../components/Register.vue'
import Forget from '../components/Forget.vue'
import Reset from '../components/Reset.vue'
import Perfect from '../components/Perfect.vue'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    { path: '/', redirect: '/home' },
    { path: '/first', redirect: '/home' },
    { path: '/second', redirect: '/home' },
    { path: '/thirdly', redirect: '/home' },
    { path: '/fourthly', redirect: '/home' },
    { path: '/home', component: HomePage },
    { path: '/login', component: Login },
    { path: '/reguser', component: Register },
    { path: '/forget', component: Forget },
    { path: '/reset', component: Reset },
    { path: '/perfect', component: Perfect }
  ]
})

export default router
